package com.njtoyo.taxi.admin.rest.export;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.njtoyo.taxi.admin.mapper.master.enums.SimpleCallRideCancellationTriggerBy;
import com.njtoyo.taxi.admin.mapper.master.enums.SimpleCallRideCategory;
import com.njtoyo.taxi.admin.mapper.master.enums.SimpleCallRideOrderPaymentChannel;
import com.njtoyo.taxi.admin.mapper.master.enums.SimpleCallRideState;
import com.njtoyo.taxi.admin.rest.export.simple_call.*;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class RideExportPresenter {
    /**
     * 电召行程导出
     */
    @ExcelProperty("行程ID")
    private Long id;

    @ExcelProperty("行程创建时间")
    private Date createdAt;

    @ExcelProperty(value = "行程类型", converter = SimpleCallRideStateConverter.class)
    private SimpleCallRideState state;

    @ExcelProperty(value = "行程是否已取消", converter = SimpleCallRideBooleanConverter.class)
    private Boolean isCancel;

    @ExcelProperty("行程取消ID")
    private Long cancelId;

    @ExcelProperty("行程取消原因")
    private String cancelReason;

    @ExcelProperty(value = "行程是否已结束", converter = SimpleCallRideBooleanConverter.class)
    private Boolean isFinished;

    @ExcelProperty(value = "出发地名称")
    private String originName;

    @ExcelProperty(value = "出发地详细名称")
    private String originPlaceName;

    @ExcelProperty(value = "实际接到地名称")
    private String realOriginName;

    @ExcelProperty(value = "实际接到地详细名称")
    private String realOriginPlaceName;

    @ExcelProperty(value = "乘客ID")
    private Long customerId;

    @ExcelProperty(value = "乘客姓名")
    private String customerName;

    @ExcelProperty(value = "乘客手机号")
    private String customerMobileNumber;

    @ExcelProperty(value = "司机ID")
    private Long driverId;

    @ExcelProperty(value = "司机姓名")
    private String driverName;

    @ExcelProperty(value = "司机手机号")
    private String driverMobileNumber;

    @ExcelProperty(value = "公司ID")
    private Long companyId;

    @ExcelProperty(value = "公司名称")
    private String companyName;

    @ExcelProperty(value = "车辆ID")
    private Long taxiId;

    @ExcelProperty(value = "车牌")
    private String taxiPlateNumber;

    @ExcelProperty("行政区ID")
    private Long cantonId;

    @ExcelProperty("行政区名称")
    private String cantonName;

    @ExcelProperty("区域ID")
    private Long areaId;

    @ExcelProperty("区域名称")
    private String areaName;

    @ExcelProperty("叫车所属的区域ID")
    private Long callRegionId;

    @ExcelProperty("叫车所属的区域名称")
    private String callRegionName;

    @ExcelProperty("订单金额")
    private BigDecimal amount;

    @ExcelProperty(value = "是否已支付", converter = SimpleCallRideBooleanConverter.class)
    private Boolean isPaid;

    @ExcelProperty(value = "支付时间", converter = SimpleCallRideTimestampConverter.class)
    private Integer paidTimestamp;

    @ExcelProperty(value = "是否为线上支付", converter = SimpleCallRideBooleanConverter.class)
    private Boolean isOnline;

    @ExcelProperty(value = "支付渠道", converter = SimpleCallRideOrderPaymentChannelConverter.class)
    private SimpleCallRideOrderPaymentChannel paymentChannel;

    @ExcelProperty(value = "取消方", converter = SimpleCallRideCancellationTriggerByConverter.class)
    private SimpleCallRideCancellationTriggerBy triggerBy;

    @ExcelIgnore
    private SimpleCallRideCategory category;
}
